//
//  MySpriteButton.h
//  CanYouDoIt
//
//  Created by hoangtx on 7/6/13.
//
//

#ifndef CanYouDoIt_MySpriteButton_h
#define CanYouDoIt_MySpriteButton_h
#include "MyPageButton.h"

using namespace cocos2d;

class MySpriteButton : public  MyPageButton{
protected:
    ccColor3B normalColor;
    ccColor3B highlightColor;

public:
    
    static MySpriteButton* create(const char* fileName, double mX,double mY,double mWidth,double mHeight);
    void setColorState(ccColor3B mNormalColor, ccColor3B mHighLightColor);
    void goToNormalMode();
    void goToHighlightMode();
    virtual bool isTouchedAt(CCPoint touchPosition);
    virtual void initialize(const char* fileName, double mX,double mY,double mWidth,double mHeight);
    virtual bool init();
    CREATE_FUNC(MySpriteButton);
};


#endif
